package com.spring.boot.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import org.springframework.web.servlet.view.XmlViewResolver;

/**
 * Created by Ager on 2017/4/27.
 */
@Configuration
public class BaseConfig {


    public void cure(){

    }
    
    public XmlViewResolver create(){
    	XmlViewResolver xmlViewResolver = new XmlViewResolver();
    	xmlViewResolver.setOrder(0);
    	Resource location = new FileSystemResource("D:/workspace/MyEclipse 10/spring-boot/jasper-defs.xml");
    	xmlViewResolver.setLocation(location);
    	return xmlViewResolver;
    }
}
